package com.baibei.model;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;

/**
 * Created by tang on 2018/7/22.
 */

public class MsgNoticeInfo implements Parcelable ,Serializable{

    private String time;
    private String title;
    private String message;

    protected MsgNoticeInfo(Parcel in) {
        time = in.readString();
        title = in.readString();
        message = in.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(time);
        dest.writeString(title);
        dest.writeString(message);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<MsgNoticeInfo> CREATOR = new Creator<MsgNoticeInfo>() {
        @Override
        public MsgNoticeInfo createFromParcel(Parcel in) {
            return new MsgNoticeInfo(in);
        }

        @Override
        public MsgNoticeInfo[] newArray(int size) {
            return new MsgNoticeInfo[size];
        }
    };

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    public String toString() {
        return "MsgNoticeInfo{" +
                "time='" + time + '\'' +
                ", title='" + title + '\'' +
                ", message='" + message + '\'' +
                '}';
    }
}
